$bg: red;

div {
  background-color: $bg;
  width: 100%;
  height: 30px;
  transition: all 0.3ms;
  transform: translate(10px, 10px);
  display: flex;
}